<div class="modal fade" id="loginModal" tabindex="-1" >
    <div class="modal-dialog">
        <div class="modal-content box_shadow_top">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title" id="myModalLabel">账号登录</h4>
            </div>
            <div class="modal-body">
                <!--<h1 class="text-center">账号登录</h1>-->
                <form class="form-horizontal" name="loginForm" ng-submit="processLoginForm(loginForm.$valid)" novalidate>
                    <!--错误信息提示-->
                    <p class="text-center text-danger" id="errorInfo">{{loginErrors}}</p>
                    <!--账号-->
                    <p class="text-center text-danger" ng-cloak ng-show="loginForm.email.$invalid && !loginForm.email.$pristine"><i class="glyphicon glyphicon-info-sign"></i> 请填写正确的邮箱</p>
                    <div class="form-group">
                        <label for="inputEmail" class="col-sm-2 col-sm-offset-1 control-label">账号:</label>
                        <div class="col-sm-6">
                            <input type="email" name="email" class="form-control" id="inputEmail" ng-model="loginFormData.email" ng-pattern="/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/" placeholder="请输入邮箱" required autofocus="autofocus">
                        </div>
                    </div>
                    <!--密码-->
                    <p class="text-center text-danger" ng-cloak  ng-show="loginForm.password.$invalid && !loginForm.password.$pristine"><i class="glyphicon glyphicon-info-sign"></i> 6-12位，只能包含字母、数字和下划线</p>
                    <div class="form-group">
                        <label for="inputPassword" class="col-sm-2 col-sm-offset-1 control-label">密码:</label>
                        <div class="col-sm-6">
                            <input type="password" name="password" class="form-control" id="inputPassword" ng-model="loginFormData.password" ng-pattern="/(?!^\\d+$)(?!^[a-zA-Z]+$)(?!^[_#@]+$).{5,}/" ng-maxlength="12" placeholder="请输入密码" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-6">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox"> Remember me
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-2">
                            <button type="submit" class="btn btn-default" ng-disabled="loginForm.$invalid">登录</button>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-9">
                            <p>没有账号，请先<a href="/register">注册</a>后登录</p>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>